/* eslint-disable no-unused-vars */
import React, { useState, useEffect } from "react";
import { useModel } from "umi";

function Visible({ children }) {
  const {
    initialState: { preview },
  } = useModel("@@initialState");
  return preview ? null : children;
}

export default Visible;
